import request from '@/utils/request'
import type { SendWsMessageData } from './types'

/** 上传文件 */
class APISocket {
    /** 设置发送获取 socket 信息 */
    static sendWsMessage(data: SendWsMessageData) {
        return request<any, any>({
            url: '/ws/init',
            method: 'POST',
            data
        })
    }
}

export default APISocket
